package io.terminus.chain;

import io.terminus.manager.FlagManager;

/**
 * Created by Stay on 2017/6/24  11:49.
 */
public class ThirdHandler extends Handler {
    /**
     * 判断是否为第二个数的倍数
     *
     * @param num
     */
    public void handle(Integer num) {
        if (FlagManager.getInstance().getFlagMap().get("twoFlag")) {
            str += "Buzz";
        }
        if (nextHandler != null) {
            getNextHandler().handle(num);
        }
    }
}
